package com.etooling.framework.entity;


import com.etooling.framework.svo.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 使用机加保企业信息管理
 */
@Entity
@Table(name = "t_org", schema = "framework")
public class Org extends AbstractEntity {
    final public static String RUNNING_STATUS = "启用";
    final public static String STOP_STATUS = "停用";
    final public static String SYNC_NEW = "最新同步";
    private String name;//企业名称
    private String orgCode;
    private String parentId;//父机构id
    private String status;
    String companyId;
    Integer seq;

    String authId;//第三方平台id

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public String getAuthId() {
        return authId;
    }

    public void setAuthId(String authId) {
        this.authId = authId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Transient
    private List<Org> children;

    @Transient
    public List<Org> getChildren() {
        return children;
    }

    @Transient
    public void setChildren(List<Org> children) {
        this.children = children;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}